package hebClustering.weights;

import hebClustering.documentTypes.Document;
import hebClustering.nlp.Token;

/**
 * This interface describes the basic operation required by a weight function.
 * 
 * @see <a href="http://en.wikipedia.org/wiki/Weight_function" target="_blank">Wight functions</a>
 */
public interface IWeightFunc {
	
	/**
	 * Calculates the weight of a token, in a specific document.
	 * 
	 * @param token - The token to be weighted.
	 * @param doc - The document in which the token is in.
	 * 
	 * @return The weight.
	 */
	public double calc(Token token,Document doc);
	
}
